﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChiTietDanhMucCon.aspx.cs" Inherits="WebRaoVat.ChiTietDanhMucCon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <!--Begin khung thu 1 cua cot trai-->
         <div id="box-pro-highlights">
		<div class="box-pro-highlights-header">
		    <a href="ChiTietDanhMucChinh.aspx?danhmucchinh=<% =maDanhMucChinh %>" style="color:#034b8a" class="no-hover">
		    <% =tenDanhMucChinh %></a>
		    <a style="color:#034b8a">></a>
			<a style="color:#034b8a"><% =tenDanhMucCon %></a>
		</div>
		<div class="content">
			<table cellpadding="0" cellspacing="0" class="tblEbInfo">
				<tbody><tr>                
	                <asp:DataList ID="DataList1" runat="server" DataKeyField="MaTinRaoVat" RepeatColumns="3" 
                        RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" Height="100px" 
                                ImageUrl='<%# Eval("Thumbnail", "~/{0}") %>' 
                                ToolTip='<%# Eval("MaDanhMucCon") %>' Width="100px" />
                            <br />
                            <asp:HyperLink ID="HyperLink1" runat="server"
                                style="text-decoration:none; color:#0034b8; font-size:small"
                                NavigateUrl='<%# Eval("MaTinRaoVat", "~/ChiTietTinRao.aspx?MaTin={0}") %>' 
                                Text='<%# Eval("TenTinRaoVat") %>' ToolTip='<%# Eval("TenTinRaoVat") %>' 
                                Width="230px"></asp:HyperLink>
                            <br />
                            <asp:Label ID="GiaTienLabel" runat="server" style="color:Red; font-size:medium"
                                Text='<%# Eval("GiaTien", "{0} VNĐ") %>' />
                            <br />
                            <br />
                        </ItemTemplate>
                    </asp:DataList>
				   
				                  
				         <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                             ConnectionString="<%$ ConnectionStrings:RAOVATConnectionString %>" 
                             SelectCommand="SELECT * FROM [TINRAOVAT] WHERE ([MaDanhMucCon] = @MaDanhMucCon)">
                             <SelectParameters>
                                 <asp:QueryStringParameter Name="MaDanhMucCon" QueryStringField="danhmuccon" 
                                     Type="Int32" />
                             </SelectParameters>
                         </asp:SqlDataSource>
				</tr>
			</tbody></table>
			
			<table cellpadding="0" border="0" >
                        <tr>
                            <td align="right">
                                <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Trang đầu</asp:LinkButton>
                                &nbsp;</td>
                            <td align="right">
                                <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">Trang trước</asp:LinkButton>&nbsp;&nbsp;</td>
                            <td align="center" valign="middle">
                                <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                    OnItemDataBound="dlPaging_ItemDataBound">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                            CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                            <td align="left">
                                &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                    OnClick="lbtnNext_Click">Trang tiếp</asp:LinkButton></td>
                            <td align="left">
                                &nbsp;
                                <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Trang cuối</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td colspan="5" align="center" style="height: 30px" valign="middle">
                                <asp:Label ID="lblPageInfo" runat="server"></asp:Label></td>
                        </tr>
                    </table>
		</div>
		</div>
		<!--End khung thu 1 cua cot trai-->
</asp:Content>
